home *** CD-ROM | disk | FTP | other *** search
- Path: hubcap.clemson.edu!hubcap!mjs
- From: mjs@hubcap.clemson.edu (M. J. Saltzman)
- Newsgroups: comp.lang.c
- Subject: Re: Bit Masking
- Date: 11 Jan 96 16:05:49 GMT
- Organization: Clemson University
- Message-ID: <mjs.821376349@hubcap>
- References: <DKz5y4.8En@twisto.eng.hou.compaq.com> <ALUN.CHAMPION.96Jan10171101@g7240065.bridge.bst.bls.com>
- NNTP-Posting-Host: hubcap.clemson.edu
-
- Alun.Champion@bridge.bst.bls.com (Alun Champion) writes:
-
- >In article <DKz5y4.8En@twisto.eng.hou.compaq.com> garyc%cs%contractors@bangate.compaq.com (Gary Clarke) writes:
-
- >: Set the bit: x |= BIT_x
-
- >: Clear the bit using BIT_x: ????
-
- >Clear the bit: x &= ~BIT_?;
-
- Obfuscated version: x = (x | BIT_x) ^ BIT_x;
- --
- Matthew Saltzman
- Clemson University Math Sciences
- mjs@clemson.edu
-